$OpenBSD: patch-base_trace_event_process_memory_dump_cc,v 1.3 2017/04/19 05:16:46 robert Exp $
--- base/trace_event/process_memory_dump.cc.orig.port	Fri Dec  2 00:02:05 2016
+++ base/trace_event/process_memory_dump.cc	Fri Dec  2 17:44:51 2016
@@ -83,7 +83,7 @@ size_t ProcessMemoryDump::CountResidentBytes(void* sta
   const size_t kMaxChunkSize = 8 * 1024 * 1024;
   size_t max_vec_size =
       GetSystemPageCount(std::min(mapped_size, kMaxChunkSize), page_size);
-#if defined(OS_MACOSX) || defined(OS_IOS)
+#if defined(OS_MACOSX) || defined(OS_IOS) || defined(OS_BSD)
   std::unique_ptr<char[]> vec(new char[max_vec_size]);
 #elif defined(OS_WIN)
   std::unique_ptr<PSAPI_WORKING_SET_EX_INFORMATION[]> vec(
